#include <stdio.h>
int main(void)
{
	int ages[10],i,ages2[10] = {0,0,0,0,0,0,0,0,0,0};
	for(i = 0;i < 10;i++)
	{
		scanf("%d",&ages[i]);
		if(ages[i]/10 >= 9)
		{
			ages2[9]++;
		}
		else
		{
			ages2[i]++;
		}
	}
	for(i = 0;i < 10;i++)
	{
		printf("%d ~ %d : %d\n",i * 10,i * 10 + 10,ages2[i]);
	}
	return 0;
}
